<?php

if($_SERVER["REQUEST_METHOD"]=="GET"){
    $result=array("msg"=>"抱歉.暂不支持get请求","status"=>-1);
    print_r(json_encode($result));
    return;
}
$pid=$_REQUEST["pid"];
$uid=$_REQUEST["uid"];
$size2=$_REQUEST["size2"];

include "DBhelper.php";
$sql="SELECT * FROM `carslist` WHERE `pid`='".$pid."' AND `uid`='".$uid."' AND `size2`='".$size2."'";

$resultData=sqlQuery($sql);
if($resultData->num_rows>=1){
    $userData=$resultData->fetch_assoc();
    $result=array("msg"=>"查询成功","status"=>1,"data"=>$userData);
    print_r(json_encode($result));
}else{
    $result=array("msg"=>"查询失败","status"=>-2);
    print_r(json_encode($result));
}